<include file="Include:header"/>
        <script type="text/javascript">
            $(function () {
                $('.tmpDate').hide();
                $('.way').change(function () {
                    if($(this).val() == 'now'){
                        $('.tmpDate').hide();
                    }else{
                        $('.tmpDate').show();
                    }
                    return false;
                });
            });
        </script>
<div class="content">
    <div class="container no-bottom">
        <div class="contact-form no-bottom">
            <form action="__URL__/submit" method="post" class="contactForm" id="contactForm">
                <fieldset>
                    <div class="formTextareaWrap">
                        <div class="formFieldWrap">
                            <label class="field-title contactNameField" for="contactNameField">期望送达时间:</label>
                            <!--<label><input type="radio" name="" value="1"/></label>-->
                            <select name="way" class="contactField way">
                                <option value="now">立即送货,預計15分鐘送到</option>
                                <option value="define">指定時間送到...</option>
                            </select>


                            <div class="tmpDate">

                                <label class="field-title contactNameField" for="contactNameField">日期（可选最近30天）:</label>
                                <select name="day" class="contactField">

                                    <option value="<?php echo strtotime('today');?>">今天</option>
                                    <!-- 未来30天内 -->
                                    <?php for($i=1;$i<30;$i ++ ):
                            $time = strtotime('today')+((24*3600)*$i);
                            ?>
                                    <option value="<?php echo $time;?>"><?php echo date('d',$time);?></option>
                                    <?php endfor;?>
                                </select>

                                <label class="field-title contactNameField" for="contactNameField">时间:</label>
                                <select name="time" class="contactField">
                                    <?php for($hour = 0 ; $hour < 24 ; $hour ++ ):
                                    ?>
                                    <?php for($min = 0 ; $min < 4;$min ++):?>
                                    <option value="<?php if($hour==0 && $min == 0 ) {echo 0 ;}else{echo $x += 900;}?>"><?php echo sprintf('%02d:%02d',$hour,($min*15));?></option>
                                    <?php endfor;?>
                                    <?php endfor;?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="formSubmitButtonErrorsWrap">
                        <input type="submit" class="buttonWrap button grey" value="确认提交订单" data-formId="contactForm"/>
                    </div>
                </fieldset>
            </form>
        </div>
    </div>


    <div class="decoration"></div>
</div>
<include file="Include:footer"/>